<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
    <head>
        <title>用户修改页面</title>
        <jsp:include page="/common.jsp"></jsp:include>
        <script type="text/javascript">
        	$(function(){
        		selectItem('status','${t.status}','status');
        	});
        </script>
    </head>
    <body>
    	${title }
        <form class="form-horizontal well" id="form" action="user?save" method="post">
            <input type="hidden" name="id" value="${t.id}">
            <div class="control-group">
                <label class="control-label">登录名称:</label>
                <div class="controls">
                    <input type="text" name="loginName" class="input-medium" value="${t.loginName}"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">用户名称:</label>
                <div class="controls">
                    <input type="text" name="name" class="input-medium" value="${t.name}"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">登入密码:</label>
                <div class="controls">
                    <input type="password" name="password" class="input-medium" value="${t.password}"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">电子邮件:</label>
                <div class="controls">
                    <input type="text" name="email" class="input-medium" value="${t.email}"/>
                </div>
            </div>
			<div class="control-group">
                <label class="control-label">角色:</label>
                <div class="controls">
                	<input name="role_id" type="hidden" value="${role_id }">
                    <input type="text" name="role_name" class="input-medium" value="${role_name}"/>
                    <a class="icon-search" onclick="role_search()"></a>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">状态:</label>
                <div class="controls">
                    <select name="status" id="status">
                    </select>
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <c:if test="${status==view}">
                        <button class="btn btn-primary">保存</button>
                    </c:if>
                    <a class="btn btn-primary" onclick="go('system/user?list')">返回</a>
                </div>
            </div>
        </form>
        <jsp:include page="/foot.jsp"></jsp:include>
    </body>
</html>
